import request from '@/utils/request';

export async function reqTyUserList(data: any, options?: any): Promise<any> {
	return request('/api/sys/user/list', {
		method: 'POST',
		data,
		...(options || {}),
	});
}

export async function reqAddTyUser(data: any, options?: any): Promise<any> {
	return request('/api/sys/user/create', {
		method: 'POST',
		data,
		...(options || {}),
	});
}

export async function reqUpdateTyUser(data: any, options?: any): Promise<any> {
	return request('/api/sys/user/update', {
		method: 'POST',
		data,
		...(options || {}),
	});
}

export async function reqDeleteTyUser(data: any, options?: any): Promise<any> {
	return request('/api/sys/user/delete', {
		method: 'POST',
		data,
		...(options || {}),
	});
}


